package com.ziyun.erp.modules.order.service;

import com.baomidou.mybatisplus.service.IService;
import com.ziyun.erp.modules.order.dto.OrderItemAuditDto;
import com.ziyun.erp.modules.order.vo.OrderItemQuoteVo;
import com.ziyun.erp.modules.order.vo.OrderItemVo;
import io.renren.common.utils.PageUtils;

import com.ziyun.erp.modules.order.entity.OrderItemEntity;
import io.renren.common.utils.R;

import java.util.List;
import java.util.Map;

/**
 * 订单详情表
 *
 * @author gaosheng
 * @email
 * @date 2018-08-07 15:31:52
 */
public interface OrderItemService extends IService<OrderItemEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<OrderItemEntity> selectByOrderId(Long orderId);

    List<OrderItemVo> selectOrderItemVosById(Long orderId);

    OrderItemVo selectOrderItemVoById(Integer itemId);

    R orderItemAudit(OrderItemAuditDto orderItemAuditDto, Long userId, String username);

    boolean updateByMap(Map<String, Object> updateMap, Integer itemId);

    OrderItemQuoteVo resolveQuoteItem(Integer itemId);
}

